{{ form(form.getAction() ~ '?tab=permission' , 'class': 'forms-horizontal') }}
    <table class="table table-hover dataTable no-footer" align="center">
        <tbody>
        {% for resource, actions in acl.getResources() %}
        <tr>
            <td colspan="6">{{ resource }}</td>
        </tr>
        {% for action in actions %}
            <tr>
                <td width="1%">
                    <input type="checkbox" name="permissions[]" value="{{ resource ~ '.' ~ action }}"  {% if permissions[resource ~ '.' ~ action] is defined %} checked="checked" {% endif %}>
                </td>
                <td width="33%">{{ acl.getActionDescription(action) ~ ' ' ~ resource }}</td>
            </tr>
        {% endfor %}
        {% endfor %}
        </tbody>
    </table>
    {{ submit_button('submit ' , 'class' : 'btn btn-primary') }}
{{ end_form() }}